<?php
/*
 * [JINYUN!] (C)2001-2099 Jinyunweb.com
 * This is NOT a freeware, use is subject to license terms
 * $Id: 2017-12-13 03:39:35 apple $
*/
defined('BY_JYA') or exit('error');
$_RQ['op']=$_RQ['op']?$_RQ['op']:'main';
if($_RQ['op']=='main'){
	$return['list']=array();
	set_html('title','VIP日志');
	exi($return);
}
if($_RQ['op']=='list'){
	$params=array('mid'=>$_SESSION['uid'],'uniacid'=>$_SESSION['uniacid']);
	$page=$_RQ['page']?$_RQ['page']:1;
	$limit=array($page,10);
	$list=pdo_getslice('jy_weishop_member_viplog',$params,$limit,$total,'','','id');
	if($list){
		foreach($list as &$item){
			$item['createtime']=date('20y/m/d H:i:s',$item['createtime']);
			$item['viptitle']=pdo_getcolumn('jy_weishop_member_level',array('id'=>$item['level_id']),'title');
		}
	}
	$return['list']=$list;
	exi($return);
}